package com.amado.course41Annotation;

/**
 * Created by Administrator on 2018/8/4.
 */
public class Teacher {
    @S02ValidStringFeild(desc = "教师姓名",maxLength = 5)
    private String teacherName;
    @S02ValidStringFeild(desc = "手机号",length = 11)
    private String telPhone;
    @S02ValidStringFeild(desc = "年龄",maxValue = 150)
    private Integer age;
    

    public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Teacher(String teacherName, String telPhone, Integer age) {
        this.teacherName = teacherName;
        this.telPhone = telPhone;
        this.age = age;
    }
}
